home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 141 / cdrom141.iso / aplic / ageletr / setup.exe / {code_GetDataFolder} / Templates / defaultPhoneOnly.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2007-02-25  |  2.1 KB  |  87 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?>
  2. <!--For rendering a list of contacts to HTML, upon phone fields only.
  3. -->
  4. <xsl:stylesheet version="1.0"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  6. <xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" />
  7.  
  8.   <xsl:template match="/">
  9.     <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  12. </head>
  13.  
  14.       <body>
  15.         <xsl:for-each select="OpenContacts/Contacts/Contact">
  16.  
  17.           <table border="0" width="100%" id="table2">
  18.             <tr>
  19.               <td width="80%">
  20.                 <font face="Times New Roman" size="3">
  21.                   <b>
  22.                     <xsl:value-of select="@Name"/>
  23.                   </b>
  24.                 </font>
  25.               </td>
  26.             </tr>
  27.           </table>
  28.  
  29.           <xsl:for-each select="Sections/Section">
  30.  
  31.  
  32.             <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
  33.               <xsl:for-each select="Fields/Field">
  34.                       <xsl:choose>
  35.  
  36.  
  37.                         <xsl:when test="@Action='phone'">
  38.                 <tr>
  39.                   <td width="15"></td>
  40.                   <td width="80" bgcolor="#C3D9FF">
  41.               <b>
  42.                     <font face="Times New Roman" size="2">
  43.                       <xsl:value-of select="../../@Name"/>
  44.                     </font>
  45.               </b>
  46.                   </td>
  47.           
  48.           
  49.                   <td width="80" bgcolor="#C3D9FF">
  50.                 <font face="Times New Roman" size="2">
  51.                   <xsl:value-of select="@Name"/>:
  52.                 </font>
  53.                   </td>
  54.                   <td bgcolor="#E0ECFF">
  55.                     <font size="3">
  56.  
  57.  
  58.                             <xsl:value-of select="@Value"/>
  59.  
  60.  
  61.  
  62.                     </font>
  63.                   </td>
  64.                 </tr>
  65.                         </xsl:when>
  66.  
  67.  
  68.                       </xsl:choose>
  69.               </xsl:for-each>
  70.  
  71.             </table>
  72.  
  73.  
  74.           </xsl:for-each>
  75.  
  76.  
  77.         </xsl:for-each>
  78.  
  79.  
  80.  
  81.  
  82.  
  83.       </body>
  84.     </html>
  85.   </xsl:template>
  86.  
  87. </xsl:stylesheet>